﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="js/jquery.js"></script>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
        })
    </script>


</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>我的菜单</div>

<dl class="leftmenu">


    <c:forEach items="${modulesmain}" var="temp1">
        <dd>
            <div class="title"><span><img src="images/leftico03.png"/></span>${temp1.name}</div>

                <ul class="menuson">
                    <c:forEach items="${modulesson}" var="temp2">
                        <c:if test="${temp1.id == temp2.parentid}">
                            <li><cite></cite><a href="${temp2.url}" target="rightFrame">${temp2.name}</a><i></i></li>
                        </c:if>
                    </c:forEach>
                </ul>

        </dd>
    </c:forEach>


</dl>

</body>
</html>
